package edu.unc.comp410.colemangeer.model;


public final class PercentageDiscountRule extends DiscountRule {
	private final double percentOff;
	
	public PercentageDiscountRule(double percentOff){
		//TODO: constrain percentOff to legal values
		this.percentOff = percentOff;
	}
	@Override
	public double applyDiscount(double price){
		return price * percentOff/100;
	}
}
